#include "Msp430Adc12.h"


module SBT80_ADCconfigP {
	provides interface AdcConfigure<const msp430adc12_channel_config_t*> as ADC0;
}

implementation {
	const msp430adc12_channel_config_t config_ADC0 = {
		inch:		INPUT_CHANNEL_A0, 
		sref: 		REFERENCE_VREFplus_AVss,
		ref2_5v: 	REFVOLT_LEVEL_NONE,
		adc12ssel: 	SHT_SOURCE_ACLK,
		adc12div:	SHT_CLOCK_DIV_1,
		sht: 		SAMPLE_HOLD_4_CYCLES,
		sampcon_ssel: 	SAMPCON_SOURCE_SMCLK,
		sampcon_id: 	SAMPCON_CLOCK_DIV_1
		};

  async command const msp430adc12_channel_config_t* ADC0.getConfiguration() {
    return &config_ADC0;
  }
}
